<?php
/**
 * Created by PhpStorm.
 * User: aron
 * Date: 2019/6/6
 * Time: 7:36 PM
 */

echo "session_name = " . session_name() . "<br>";

session_start();
$_SESSION["username"] = "admin";
echo "Session ID:" . session_id() . "<br>";
echo "SID = " . SID;
?>

<a href="test.php<?php echo SID?>">USE SID</a>

